import { createCmdConfig } from '@antv/xflow'
import {addEdge} from './comannd-utils'
// impoert {} from '@antv/xflow'

export const useCmdConfig = createCmdConfig(config => {
    config.setRegisterHookFn((hooks: any): any => {
        hooks.addEdge.registerHook({
            name: 'addEdgeHook',
            handler: async (args: any) => {
                  args.createEdgeService = addEdge
            },
        })
    })
})